abde4bd08f8bf901dba878fc99c8f22c8ca1b071,sonar-runner-api/src/test/java/org/sonar/runner/impl/ServerConnectionTest.java,ServerConnectionTest,should_not_download_file_when_host_is_down,#,164
Before Change
@Test
public void should_not_download_file_when_host_is_down() throws Exception {
Properties props = new Properties();
props.setProperty("sonar.host.url", "http://localhost:" + NetworkUtil.getNextAvailablePort());
ServerConnection connection = ServerConnection.create(props, cache, mock(Logger.class));
File toFile = temp.newFile();
try {
connection.download("/batch/index.txt", toFile);
After Change
@Test
public void should_not_download_file_when_host_is_down() throws Exception {
ServerConnection connection = createSimpleServerConnection("http://localhost", NetworkUtil.getNextAvailablePort());
File toFile = temp.newFile();
try {